package com.firemoss.atonement.mapper.error
{
	import com.firemoss.atonement.metadata.Property;
	
	import org.as3commons.reflect.Type;

	public class UnresolvedNameMapping
	{
		public var source : Class
		public var target : Class
		public var targetProperty : Property
		
		public function toString():String
		{
			return "-- UNMATCHED PROPERTY: For the target type " 
				+ Type.forClass( target ).fullName + "'s \"" + targetProperty.name + "\"\n\t"
				+ "property, there is no matching property on the source type \"" 
				+ Type.forClass( source ).fullName + ".\"\n\t" 
				+ "Please add a like-named and like-typed property, use [PropertyResolver] or [Ignored] annotations, or \n\t"
				+ "or use mapping.addPropertyResolver() or mapping.ignoreProperty() to configure its resolution.";
		}
	}
}